using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(menuName = "Data/State/Player/PlayerHit", fileName = "PlayerHit")]
public class PlayerState_Hit : PlayerState
{
    public override void Enter()
    {
        base.Enter();
        // 移动受到影响，速度变为一半
    }
    
    //
    public override void Exit()
    {
        base.Exit();
    }
    
    //
    public override void LogicUpdate()
    {
        base.LogicUpdate();
        // 动作结束
        if (isAnimationFinished)
        {
            stateMachine.SwitchState(stateMachine.stateTable[typeof(PlayerState_Idle)]);
        }
        
    }
    
    //
    public override void PhysicalUpdate()
    {
        base.PhysicalUpdate();
    }
}
